package com.example.javaeefinal.config;

import com.example.javaeefinal.utils.Interceptor;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import java.util.ArrayList;
import java.util.List;

/**
 * @Auther: Lai Wenhao
 * @Date: 2023/12/29 12:59
 **/
//public class mvc implements WebMvcConfigurer {
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        List<String> list=new ArrayList<>();
//        //此处添加不被拦截的url
//        list.add("/sign_in");
//        registry.addInterceptor(new Interceptor()).excludePathPatterns(list);
//        WebMvcConfigurer.super.addInterceptors(registry);
//    }
//}
